package service;

import model.Student;

import java.util.List;

//规范化代码
public interface StudentService {
    int add(Student student);
    int edit(Student newStudent);

    List<Student> findAll();

    void delete(int id);

    Student getById(int id);

    boolean login(String name, String password);

    List<Student> selectByPage(int fromIndex,int pageSize);
}
